<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<!--[if IE]>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<![endif]-->
<title>电影后台</title>
<!-- BOOTSTRAP CORE STYLE  -->
<link href="css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE  -->
<link href="css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE  -->
<link href="css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

</head>
<body>
<div class="navbar navbar-inverse set-radius-zero" >
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="film_list.action">
				<img src="img/logo.png" />
			</a>

		</div>

		<div class="right-div">
		 <s:if test="#session.userInfo != null">
	                欢迎你： <s:property value="#session.userInfo.uname"/> &nbsp;
       </s:if>
       <s:else>
	      <s:a href="login.jsp" class="btn btn-danger pull-right">登录</s:a>
	      <s:a href="register.jsp" class="btn btn-danger pull-right">注册</s:a>
       </s:else>
		</div>
	</div>
</div>
<!-- LOGO HEADER END-->
<section class="menu-section">
	<div class="container">
		<div class="row ">
			<div class="col-md-12">
				<div class="navbar-collapse collapse ">
					<ul id="menu-top" class="nav navbar-nav navbar-right">
						<!-- <li><a href="User_index" class="menu-top-active">电影列表</a></li>
						<li><a href="User_index">类别管理</a></li> -->
						<!-- <li>
							<a href="#" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">UI ELEMENTS <i class="fa fa-angle-down"></i></a>
							<ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
								<li role="presentation"><a role="menuitem" tabindex="-1" href="ui.html">UI ELEMENTS</a></li>
								 <li role="presentation"><a role="menuitem" tabindex="-1" href="#">EXAMPLE LINK</a></li>
							</ul>
						</li> -->
						<li><a href="film_list.action">新闻管理模块</a></li>
						 <li><a href="news_list.action">新闻管理模块</a></li>
						<li><a href="filmType_list.action">电影类型管理模块</a></li>
					</ul>
				</div>
			</div>

		</div>
	</div>
</section>
 <!-- MENU SECTION END-->
<div class="content-wrapper">
	 <div class="container">
	<div class="row pad-botm">
		<div class="col-md-12">
				<div class="row">
					<!-- 描述：列表展示 -->
					<div class="col-md-12">
					 <table border="1" style="text-align: center;  align="center"; cellpadding="5"; cellspacing="0" ">
  	 	<tr>
  	 	    <th align=center>序号</th>		
  	 		<th align=center>电影名称</th>
  	 		<th align=center>电影票价</th>
  	 		<th align=center>电影放映时间</th>
  	 		<th align=center>电影主演</th>
  	 		<th align=center>电影导演</th>
  	 		<th align=center>电影简介</th>
  	 		<!-- 新增 -->
  	 		<th align=center>电影图片</th>
  	 		<th align=center>操作</th>
  	 	</tr>
  	 	<s:if test="#request.listFilm != null">
  	 		<s:iterator var="film" value="#request.listFilm" status="st">
  	 			<tr>
  	 				<td align=center> <s:property value="#st.count"/> </td>
  	 				<td align=center> <s:property value="#film.fname"/> </td>
  	 				<td align=center> <s:property value="#film.fmoney"/> </td>
  	 				<td align=center> <s:property value="#film.ftime"/> </td>
  	 				<td align=center> <s:property value="#film.factor"/> </td>
  	 				<td align=center> <s:property value="#film.fdirector"/> </td>
  	 				<td align=center> <s:property value="#film.fsynopsis"/> </td>
  	 				<!-- 新增 -->
  	 				<td align=center> 
  	 				   <img src="<s:property value="#film.img"/>" width="120" height="90"  style="display: inline-block;">
  	 			    </td>
  	 				<td align=center> 
  	 					<s:a href="film_viewUpdate?id=%{#film.id}">修改</s:a>&nbsp;
  	 					<s:a href="film_delete?id=%{#film.id}">删除</s:a>
  	 					<s:a href="film_viewAdd">添加电影</s:a>
  	 				</td>
  	 			</tr>
  	 		</s:iterator>
  	 	</s:if>
  	 	<s:else>
  	 		<tr>
  	 			<td colspan="5">对不起，没有你要找的数据！请先录入。</td>
  	 		</tr>
  	 	</s:else>
  	 </table>
					</div>
					
				</div>
			
			
		</div>
	</div>
	</div>
</div>
 <!-- CONTENT-WRAPPER SECTION END-->
<section class="footer-section">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
			   Copyright &copy; 2017.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></div>

		</div>
	</div>
</section>
  <!-- FOOTER SECTION END-->
<!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME  -->
<!-- CORE JQUERY  -->
<script src="js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS  -->
<script src="js/bootstrap.js"></script>
  <!-- CUSTOM SCRIPTS  -->
<script src="js/custom.js"></script>

</body>
</html>
